package com.baizhi.feign.fallback;

import com.baizhi.common.dto.Product;
import com.baizhi.common.enums.AckCode;
import com.baizhi.common.vo.PageVO;
import com.baizhi.common.vo.R;
import com.baizhi.feign.ProductFeignClient;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/6/28 9:07
 * @Version 1.0
 */
@Component
public class ProductFeignClientFallback implements ProductFeignClient {

    @Override
    public R<PageVO<Product>> productSearch(Integer page, Integer rows, Integer categoryId) {
        return  R.build(AckCode.DEGRADE_EXCEPTION);
    }
}
